package com.liurui.demo.mapper;


import com.liurui.demo.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;
//@Mapper : 表示本类是一个 MyBatis 的 Mapper
@Repository
public interface DepartmentMapper {
    public Collection<Department> getDepartments();
    public Department getDepartmentById(Integer id);
}
